import Vue from "vue";

const allComponents = require.context("@/views/components", true, /\.vue$/);
const requireAll = (requireContext) =>
  requireContext.keys().map(requireContext);

requireAll(allComponents).forEach((component) => {
  const { name } = component.default;
  Vue.component(name, component.default);
});
